package common

const (
	RouteExact  = "Exact"  // 精确匹配
	RoutePrefix = "Prefix" // 前缀匹配
	RouteRegex  = "Regex"  // 正则匹配

	StaticService = "static" // 静态服务
	DnsService    = "dns"    // 域名服务
	NacosService  = "nacos"  // nacos服务
	ConsulService = "consul" // consul服务

	HealthCheckPath        = "/health"
	HealthCheckHeaderKey   = "x-go-proxy-health-check"
	HealthCheckHeaderValue = "go-proxy-check"

	RoundRobin = "roundRobin"

	WebProxy  = "web"
	HttpProxy = "http"
	TcpProxy  = "tcp"

	DefaultFileRoot = "./static"

	HttpBasicAuth = "httpBasic"
	JwtAuth       = "jwt"

	TOKEN         = "token"
	AUTHORIZATION = "Authorization"
	USERNAME      = "username"
	EXPIRE        = "expire"
)

var (
	NoAuthPath = map[string]bool{
		"/auth/login": true,
		"/metrics":    true,
		"/static":     true,
	}
)
